
#-------------------------------------------------------------------------------
# class FootprintsScene
#-------------------------------------------------------------------------------
class FootprintsScene(object):

    #---------------------------------------------------------------------------
    # __init__
    #---------------------------------------------------------------------------
    def __init__(self, sceneGML, logger = None):
        
        self.gml = sceneGML
        self.logger = logger

    #---------------------------------------------------------------------------
    # fileName
    #---------------------------------------------------------------------------
    def fileName(self):
        return self._getValue('ogr:S_FILEPATH')
        
    #---------------------------------------------------------------------------
    # getValue
    #---------------------------------------------------------------------------
    def _getValue(self, tagName):
        return self.gml.getElementsByTagName(tagName)[0].childNodes[0].nodeValue

    #---------------------------------------------------------------------------
    # pairName
    #---------------------------------------------------------------------------
    def pairName(self):
        return self._getValue('ogr:pairname')
        
    #---------------------------------------------------------------------------
    # stripName
    #---------------------------------------------------------------------------
    def stripName(self):
        return self._getValue('ogr:STRIP_ID')
        
    #---------------------------------------------------------------------------
    # __repr__
    #---------------------------------------------------------------------------
    def __repr__(self):
        return self.__str__()
        
    #---------------------------------------------------------------------------
    # __str__
    #---------------------------------------------------------------------------
    def __str__(self):
        return self.fileName()
        